<php>
        if($actionName == 'index'){
            echo '<p>';
            $links = S('links');
            if(empty($links)){
            $links = M('links')->where(array('status' => 1 , 'is_where' => 2))->select(); 
            S('links',$links);
            $links = S('links');
            }
        }
</php>
<center>
  <foreach name='links' item='links'><a href='{$links.src}'target="_blank" title="{$links.remark}">{$links.title}</a>&nbsp;&nbsp;</foreach>
</cernter>
<center>Power By Clmao</cernter>